// Javascript ES5
// webpack 了解
// 程序的设计思想

import Vue from 'vue'


// options 选项API
const vm = new Vue({
  el: '#app',
  data() {
    return {
      title: '学生列表',
      classNum: 1,
      total: 2,
      teachers: [
        '张三',
        '李四',
        [1, 2, 3]
      ],
      info: {
        age: 12,
        a: {
          b: 1
        }
      },
      students: [
        {
          id: 1,
          name: '小红'
        }, {
          id: 2,
          name: '小名'
        }
      ]
    }
  }
})

console.log(vm.teachers[0])
console.log(vm.teachers.push({
  id: 111,
  name: 'wed'
}))
console.log(vm.teachers)
// console.log(vm)